﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Configuration;
using log4net;

namespace CubaSite.Configuracion
{
    /// <summary>
    /// Summary description for Configuracion
    /// </summary>
    public class ConfiguracionCubaSite
    {

        private static readonly ILog log = LogManager.GetLogger("LogFile");

        public ConfiguracionCubaSite()
        {
            //
            // TODO: Add constructor logic here
            //
        }

        public static string GetApplicationName()
        {
            string applicatinName = "Cuba &amp; Cia. Soc. Civ.";
            try
            {
                applicatinName = ConfigurationManager.AppSettings["ApplicationName"];
            }
            catch (Exception ex)
            {
                log.Error("No se pudo obtener el nombre de la Aplicacion", ex);
            }
            return applicatinName;
        }
    }
}